//  布局结构图片映射
function getImg(src) {
  return new URL(src, import.meta.url).href
}
export const layoutImgMap = {
  logicalStructure: getImg("../assets/img/structures/logicalStructure.png"),
  mindMap: getImg("../assets/img/structures/mindMap.png"),
  organizationStructure: getImg("../assets/img/structures/organizationStructure.png"),
  catalogOrganization: getImg("../assets/img/structures/catalogOrganization.png"),
  timeline: getImg("../assets/img/structures/timeline.png"),
  timeline2: getImg("../assets/img/structures/timeline2.png"),
  fishbone: getImg("../assets/img/structures/fishbone.png"),
  verticalTimeline: getImg("../assets/img/structures/verticalTimeline.png")
}

//  主题图片映射
export const themeMap = {
  default: getImg("../assets/img/themes/default.jpg"),
  classic: getImg("../assets/img/themes/classic.jpg"),
  minions: getImg("../assets/img/themes/minions.jpg"),
  pinkGrape: getImg("../assets/img/themes/pinkGrape.jpg"),
  mint: getImg("../assets/img/themes/mint.jpg"),
  gold: getImg("../assets/img/themes/gold.jpg"),
  vitalityOrange: getImg("../assets/img/themes/vitalityOrange.jpg"),
  greenLeaf: getImg("../assets/img/themes/greenLeaf.jpg"),
  dark2: getImg("../assets/img/themes/dark2.jpg"),
  skyGreen: getImg("../assets/img/themes/skyGreen.jpg"),
  classic2: getImg("../assets/img/themes/classic2.jpg"),
  classic3: getImg("../assets/img/themes/classic3.jpg"),
  classic4: getImg("../assets/img/themes/classic4.jpg"),
  classicGreen: getImg("../assets/img/themes/classicGreen.jpg"),
  classicBlue: getImg("../assets/img/themes/classicBlue.jpg"),
  blueSky: getImg("../assets/img/themes/blueSky.jpg"),
  brainImpairedPink: getImg("../assets/img/themes/brainImpairedPink.jpg"),
  dark: getImg("../assets/img/themes/dark.jpg"),
  earthYellow: getImg("../assets/img/themes/earthYellow.jpg"),
  freshGreen: getImg("../assets/img/themes/freshGreen.jpg"),
  freshRed: getImg("../assets/img/themes/freshRed.jpg"),
  romanticPurple: getImg("../assets/img/themes/romanticPurple.jpg"),
  simpleBlack: getImg("../assets/img/themes/simpleBlack.jpg"),
  courseGreen: getImg("../assets/img/themes/courseGreen.jpg"),
  coffee: getImg("../assets/img/themes/coffee.jpg"),
  redSpirit: getImg("../assets/img/themes/redSpirit.jpg"),
  blackHumour: getImg("../assets/img/themes/blackHumour.jpg"),
  lateNightOffice: getImg("../assets/img/themes/lateNightOffice.jpg"),
  blackGold: getImg("../assets/img/themes/blackGold.jpg"),
  autumn: getImg("../assets/img/themes/autumn.jpg"),
  avocado: getImg("../assets/img/themes/avocado.jpg"),
  orangeJuice: getImg("../assets/img/themes/orangeJuice.jpg"),
  oreo: getImg("../assets/img/themes/oreo.jpg"),
  shallowSea: getImg("../assets/img/themes/shallowSea.jpg"),
  lemonBubbles: getImg("../assets/img/themes/lemonBubbles.jpg"),
  rose: getImg("../assets/img/themes/rose.jpg"),
  seaBlueLine: getImg("../assets/img/themes/seaBlueLine.jpg"),
  neonLamp: getImg("../assets/img/themes/neonLamp.jpg"),
  darkNightLceBlade: getImg("../assets/img/themes/darkNightLceBlade.jpg"),
  morandi: getImg("../assets/img/themes/morandi.jpg"),
  classic5: getImg("../assets/img/themes/classic5.jpg"),
  dark3: getImg("../assets/img/themes/dark3.jpg"),
  dark4: getImg("../assets/img/themes/dark4.jpg"),
  cactus: getImg("../assets/img/themes/cactus.jpg"),
  classic6: getImg("../assets/img/themes/classic6.jpg"),
  classic7: getImg("../assets/img/themes/classic7.jpg")
}

// 公式列表
export const formulaList = [
  "a^2",
  "a_2",
  "a^{2+2}",
  "a_{i,j}",
  "x_2^3",
  "\\overbrace{1+2+\\cdots+100}",
  "\\sum_{k=1}^N k^2",
  "\\lim_{n \\to \\infty}x_n",
  "\\int_{-N}^{N} e^x\\, dx",
  "\\sqrt{3}",
  "\\sqrt[n]{3}",
  "\\sin\\theta",
  "\\log X",
  "\\log_{10}",
  "\\log_\\alpha X",
  "\\lim_{t\\to n}T",
  "\\frac{1}{2}=0.5",
  "\\binom{n}{k}",
  "\\begin{matrix}x & y \\\\z & v\\end{matrix}",
  "\\begin{cases}3x + 5y +  z \\\\7x - 2y + 4z \\\\-6x + 3y + 2z\\end{cases}"
]

export const supportLineStyleLayoutsMap = {
  curve: ["logicalStructure", "mindMap", "verticalTimeline"],
  direct: ["logicalStructure", "mindMap", "organizationStructure", "verticalTimeline"]
}

export const supportLineRadiusLayouts = ["logicalStructure", "mindMap", "verticalTimeline"]

export const supportNodeUseLineStyleLayouts = [
  "logicalStructure",
  "mindMap",
  "catalogOrganization",
  "organizationStructure"
]

export const supportRootLineKeepSameInCurveLayouts = ["logicalStructure", "mindMap"]
